$(function () {

    var _thisPage = null, _user = null, _phone = "";

    var editphonePage = function () {
        this.init();
    };

    editphonePage.prototype = {

        init: function () {
            this.initData();
            this.bindEvent();
        },
        initData: function () {
            //获取用户信息
            _user = getLocalStorage(STORAGE_MANAGER.user);
            if (!_user) {
                redirect("login.html");
                return false;
            }
            //获取手机号
            _phone = getUrlParam("phone");
            $("#phone").html(_phone).attr("tip", _user.id);

        },
        bindEvent: function () {
            //回退
            $("#back").on("tap", function () {
                back();
            });

            //点击获取验证码
            $("#getVcode").on("tap", function () {
                change_code(this, $("#phone"), SMS_TYPE.verify);
            });

            $("#nextStep").on("tap", function () {

            });

        }
    };

    _thisPage = new editphonePage();
});
